package ru.mipt.sport;

import ru.mipt.sport.gui.MainWindow;
import ru.mipt.sport.utils.DBUtils;

/**
 *
 * @author Danon
 */

public class SportZ {
    
    private static MainWindow mainWindow;
    
    static {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (Exception ex) {
//            
//        }
        //</editor-fold>
        /*
         * Set SystemPlatform look and feel 
         */
        try {
            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {}
    }
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        DBUtils db = DBUtils.getInstance();
        mainWindow = new MainWindow();
        mainWindow.setVisible(true);
    }
    
    public static MainWindow getMainWindow() {
        return mainWindow;
    }
    
}
